package com.lys.xxx.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class DemoController {
    @GetMapping("/index")
    @ApiOperation("Demo测试")
    public String get() {
        return "index";
    }

    @GetMapping("/doc")
    public String getDoc() {
        return "redirect:/doc.html";
    }

}
